home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
pascal
/
tegl6b.zip
/
INTROPAK.EXE
/
lha
/
BUTTON3.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-17
|
944b
|
41 lines
{-- button2.pas}
{$F+}
USES moreicon,teglunit,teglmain;
function Disk35event(frame: ImageStkPtr; mouse: MsClickPtr): Word;
BEGIN
{-- if true then the button has been released }
if VisualSquareButtonPress(frame,mouse) then
begin
{-- this will pop the button back up }
ReleaseSquareButton(frame,mouse);
end;
END;
function Diskevent(frame: ImageStkPtr; mouse: MsClickPtr): Word;
BEGIN
{-- if true then the button has been released }
if VisualSquareButtonPress(frame,mouse) then
begin
{-- this will pop the button back up }
ReleaseSquareButton(frame,mouse);
end;
END;
BEGIN
easytegl;
easyout;
PushImage(0,09,39,49);
DefineSquareButtonClick(stackptr,0,0,39,39,5,5,@ImageDisk,diskevent);
PushImage(0,49,39,89);
DefineSquareButtonClick(stackptr,0,0,39,39,5,5,@ImageDisk35,disk35event);
TeglSupervisor;
END.